{
	//基本定义和生成实列
	class Parent {
		constructor(name = 'GUNDAM') {
			this.name = name;
		}
	}

	let v_parent = new Parent('amuro');

	console.log('构造函数和实列', v_parent);
}

{
	//基本定义和生成实列
	class Parent {
		constructor(name = 'GUNDAM') {
			this.name = name;
		}
	}

	class Child extends Parent {
		constructor(name = 'child') {
			super(name);
			this.type = 'RX-78-2'
		}
	}

	console.log('继承', new Child());
}

{
	//getter,setter
	class Parent {
		constructor(name = 'GUNDAM') {
			this.name = name;
		}

		get longName() {
			return 'mk' + this.name;
		}

		set longName(value) {
			this.name = value
		}
	}

	let v = new Parent();
	console.log('getter', v.longName);
	v.longName = 'hello';
	console.log('setter', v.longName);
}

{
	//静态方法
	class Parent {
		constructor(name = 'GUNDAM') {
			this.name = name;
		}

		static tell(){
			console.log('tell');
		}
	}
	
	Parent.tell();
}

{
	//静态属性
	class Parent {
		constructor(name = 'GUNDAM') {
			this.name = name;
		}
	
		static tell(){
			console.log('tell');
		}
	}
	
	Parent.type = 'test';
	
	console.log('静态属性',Parent.type);
}


